//
//  AvoidTheCircleGameScene.h
//  CanYouDoIt
//
//  Created by hoangtx on 7/9/13.
//
//

#ifndef CanYouDoIt_AvoidTheCircleGameScene_h
#define CanYouDoIt_AvoidTheCircleGameScene_h
#include "CountTimeGameScene.h"
#include "MySpriteButton.h"
using namespace cocos2d;
class AvoidTheCircleGameScene : public CountTimeGameScene{
public:
    MySpriteButton* button;
    CCArray* bouncingArray;
    CCArray* totalButtonArray;
    CCPoint beginPoint;
    CCPoint originalPosition;
    CCPoint superStartPoint;

    void randomlyCreateBouncingCircles(int numberOfCircles);
    void onTapTheButton(CCObject* sender);
    void update(float dt);
    void onEnter();
    virtual void onTick(float dt);
    static CCScene* scene();
    virtual void startGame();
    virtual void reset();
    virtual bool init();
    virtual void ccTouchesBegan(CCSet* touches, CCEvent* pEvent);
    virtual void ccTouchesMoved(CCSet* touches, CCEvent* pEvent);
    virtual void ccTouchesEnded(CCSet* touches, CCEvent* pEvent);
    CREATE_FUNC(AvoidTheCircleGameScene);
};


#endif
